export default class LinkNode<T> {
    protected pre: LinkNode<T>;
    protected next: LinkNode<T>;
    protected obj: T;
    setPre(pre) {
        this.pre = pre;
    }

    getPre() {
        return this.pre;
    }

    setNext(n) {
        this.next = n;
    }

    getNext() {
        return this.next;
    }

    setObj(obj) {
        this.obj = obj;
    }

    getObj() {
        return this.obj;
    }
}